package canss.webservice.controls;

import org.apache.beehive.controls.api.bean.ControlInterface;

import weblogic.jdbc.SQLExceptionWrapper;
import canss.webservice.model.Channel;

@ControlInterface
public interface ChannelControl
{

	Channel[] getEntireChannel() throws SQLExceptionWrapper;

	Channel[] getChannelByPID(String _pid) throws SQLExceptionWrapper;

	Boolean addNewChannel(String _tblpid_pid, String _channelname)
			throws SQLExceptionWrapper;

	Boolean setChannelRuleByPIDIndex(String _tblpid_pid, Integer _index_2,
			String _outbound_ruleid) throws SQLExceptionWrapper;

	Boolean clearChannelRuleByPIDIndex(String _tblpid_pid, Integer _index_2)
			throws SQLExceptionWrapper;

	Boolean renameChannelName(String _tblpid_pid, Integer _index_2,
			String _channelname) throws SQLExceptionWrapper;

	Boolean removeChannelByPIDIndex(String _tblpid_pid, Integer _index_2)
			throws SQLExceptionWrapper;

	Channel[] getChannelByPIDChannelname(String _pid, String _channelname)
			throws SQLExceptionWrapper;

}